package com.juneyao.bigdata.domain;

import com.juneyao.bigdata.common.ConstantNV;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import java.io.Serializable;

/**
 * @author quanbiao
 * @date 2018-06-28
 * 用户详细信息，只放id，用于es查询
 */
@Document(indexName = ConstantNV.ES_INDEX_NAME, type = ConstantNV.ES_INDEX_TYPE, createIndex = false)
public class UserDetail implements Serializable {

    private static final long serialVersionUID = -4597398179912898540L;

    /**
     * 用户id
     */
    @Id
    private String id;

    public UserDetail(String id) {
        this.id = id;
    }

    public UserDetail() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
